package br.edu.univas.es2012.controller;

import br.edu.univas.es2012.listeners.MenuListener;
import br.edu.univas.es2012.model.PacientesDAO;
import br.edu.univas.es2012.model.ServicosDAO;
import br.edu.univas.es2012.view.FramePrincipal;

public class ControllerPrincipal {
	
	private PacientesDAO pacientesDAO;
	private ServicosDAO servicosDAO;
	private FramePrincipal framePrincipal;
	
	public ControllerPrincipal(PacientesDAO pacientesDAO,ServicosDAO servicosDAO) {
		this.pacientesDAO = pacientesDAO;
		this.servicosDAO = servicosDAO;
	}
	
	public void showFramePrincipal(){
		framePrincipal = new FramePrincipal();
		framePrincipal.addMenuListener(new MenuListener() {
			
			@Override
			public void usuarioAlterarSenha() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void sair() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void relatoriosServicos() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void relatoriosPaciente() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void relatoriosContasReceber() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void relatoriosAtendimentos() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void relatoriosAgenda() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void lancamentoContasReceber() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void lancamentoCaixa() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void lancamentoAtendimentos() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void lancamentoAgendarPaciente() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void cadastroServico() {
				ControllerServicos servicos = new ControllerServicos(servicosDAO, null);
				servicos.criarNovoServico();
				
			}
			
			@Override
			public void cadastroPaciente() {
				ControllerPacientes pacientes = new ControllerPacientes(pacientesDAO, null);
				pacientes.criarNovoCadastro();
				
			}
			
			@Override
			public void ajudaSobre() {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void consultaPacientes() {
				ControllerConsultaPacientes pacientes = new ControllerConsultaPacientes(pacientesDAO);
				pacientes.listarPacientes();
				
			}

			@Override
			public void consultaServicos() {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void consultaAgenda() {
				// TODO Auto-generated method stub
				
			}
		});
		framePrincipal.setLocationRelativeTo(null);
		framePrincipal.setVisible(true);
	}

}
